﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Drawing;
using System.Drawing.Drawing2D;

namespace nextGeneration_app
{
   public class Captcha : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            int iHeight = 80;
            int iWidth = 190;
            Random oRandom = new Random();

            int[] aBackgroundNoiseColor = new int[] { 150, 150, 150 };
            int[] aTextColor = new int[]{0, 0, 0};
            int[] aFontEmSizes = new int[] { 15, 20, 25, 30, 35 };

            string[] aFontNames = new string[]
                {
                    "Comic Sans MS",
                    "Arial",
                    "Times New Roman",
                    "Georgia",
                    "Verdana",
                    "Geneva"
                };
            FontStyle[] aFontStyles = new FontStyle[]
            {
        FontStyle.Bold,
            FontStyle.Italic,
            FontStyle.Regular,
            FontStyle.Strikeout,
            FontStyle.Underline
            };
            HatchStyle[] aHathStyles = new HatchStyle[]
            {
                HatchStyle.BackwardDiagonal,
                HatchStyle.Cross,
                HatchStyle.DarkDownwardDiagonal,
                HatchStyle.DarkHorizontal
            };
            

            context.Response.ContentType = "text/plain";
            context.Response.Write("Hello World");
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}